using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;

namespace Blog.Repository;


/// <summary>
/// 文档
///</summary>
[SugarTable("ad_document")]
public class AdDocumentEntity : EntityFull
{

    /// <summary>
    /// 主键Id
    ///</summary>
    [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
    public long Id { get; set; }
    
    /// <summary>
    /// 父级节点
    ///</summary>
    [SugarColumn(ColumnName = "ParentId")]
    public long ParentId { get; set; }
    
    /// <summary>
    /// 名称
    ///</summary>
    [SugarColumn(ColumnName = "Label")]
    public string? Label { get; set; }
    
    /// <summary>
    /// 类型
    ///</summary>
    [SugarColumn(ColumnName = "Type")]
    public int Type { get; set; }
    
    /// <summary>
    /// 命名
    ///</summary>
    [SugarColumn(ColumnName = "Name")]
    public string? Name { get; set; }
    
    /// <summary>
    /// 内容
    ///</summary>
    [SugarColumn(ColumnName = "Content")]
    public string? Content { get; set; }
    
    /// <summary>
    /// Html
    ///</summary>
    [SugarColumn(ColumnName = "Html")]
    public string? Html { get; set; }
    
    /// <summary>
    /// 启用
    ///</summary>
    [SugarColumn(ColumnName = "Enabled")]
    public bool Enabled { get; set; }
    
    /// <summary>
    /// 打开组
    ///</summary>
    [SugarColumn(ColumnName = "Opened")]
    public bool? Opened { get; set; }
    
    /// <summary>
    /// 排序
    ///</summary>
    [SugarColumn(ColumnName = "Sort")]
    public int? Sort { get; set; }
    
    /// <summary>
    /// 描述
    ///</summary>
    [SugarColumn(ColumnName = "Description")]
    public string? Description { get; set; }
    
    /// <summary>
    /// 租户Id
    ///</summary>
    [SugarColumn(ColumnName = "TenantId")]
    public long? TenantId { get; set; }
    
    /// <summary>
    /// 版本
    ///</summary>
    [SugarColumn(ColumnName = "Version")]
    public long Version { get; set; }
    }
